import {
    get,
    post,
    //postForm,
    del
} from '@/utils/http'
const packageName = `/admin`


/**
 * 裁判信息
 */
// 获取裁判信息
export function getRefereeInfo(params) {
    return get(`${packageName}/pc/refereeInfo/getRefereeInfo`, params)
}
// 获取裁判信息列表
export function getRefereeInfoList(params) {
    return get(`${packageName}/pc/refereeInfo/getRefereeInfoList`, params)
}
// 删除裁判信息
export function delRefereeInfo(params) {
    return del(`${packageName}/pc/refereeInfo/delRefereeInfo`, params)
}
// 保存裁判信息
export function saveRefereeInfo(params) {
    return post(`${packageName}/pc/refereeInfo/saveRefereeInfo`, params)
}
// 导入裁判信息
export function importRefereeInfo(params) {
    return post(`${packageName}/pc/refereeInfo/importRefereeInfo`, params)
}
// 启用禁用裁判信息
export function openOrCloseRefereeInfo(params) {
    return post(`${packageName}/pc/refereeInfo/openOrClose`, params)
}


/**
 * 选手信息
 */
// 获取选手信息详情
export function getPlayerInfo(params) {
    return get(`${packageName}/pc/playerInfo/getPlayerInfo`, params)
}
// 获取选手信息列表
export function getPlayerInfoList(params) {
    return get(`${packageName}/pc/playerInfo/getPlayerInfoList`, params)
}
// 删除选手信息
export function delPlayerInfo(params) {
    return del(`${packageName}/pc/playerInfo/delPlayerInfo`, params)
}
// 保存选手信息
export function savePlayerInfo(params) {
    return post(`${packageName}/pc/playerInfo/savePlayerInfo`, params)
}
// 导入选手信息
export function importPlayerInfo(params) {
    return post(`${packageName}/pc/playerInfo/importPlayerInfo`, params)
}
// 启用禁用选手信息
export function openOrClosePlayerInfo(params) {
    return post(`${packageName}/pc/playerInfo/openOrClose`, params)
}